package com.unknow.first.dapp.admin.account.service;

import com.unknow.first.dapp.admin.account.dto.FlashSwapPairUpdateDTO;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * 队列更新后置处理类
 */
public interface IUpdateSwapPairAfterService {

    String UPDATE_SWAP_PAIR_AFTER_SERVICE_PREFIX = "UpdateSwapPairAfterService.";

    @Transactional(rollbackFor = Throwable.class, propagation = Propagation.MANDATORY)
    void execute(FlashSwapPairUpdateDTO swapPairUpdateDTO) throws Exception;
}
